﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Crawler
{
    class Constant
    {
        public static string regexDaYuHao = @"(?:(?:<a[^>]*>[^<>]*(((?'Open'<a[^>]*>)[^<>]*)+((?'-Open'</a>)[^<>]*)+)*(?(Open)(?!))</a>\s*)+((?<=>)\s+>[^<>]+(?=<)))+(?:<a[^>]*>[^<>]*(((?'ga'<a[^>]*>)[^<>]*)+((?'-ga'</div>)[^<>]*)+)*(?(ga)(?!))</a>\s*)?";
        public static string regexEmLabel = @"(?:(?:<a[^>]*>[^<>]*(((?'Open'<a[^>]*>)[^<>]*)+((?'-Open'</a>)[^<>]*)+)*(?(Open)(?!))</a>[^<>]+)+<em[^>]*>.*(((?'gem'<em[^>]*>)[^<>]*)+((?'-gem'</em>)[^<>]*)+)*(?(gem)(?!))</em>\s*)+(?:<a[^>]*>[^<>]*(((?'ga'<a[^>]*>)[^<>]*)+((?'-ga'</div>)[^<>]*)+)*(?(ga)(?!))</a>\s*)+";
        public static string regexBoultSign = @"((<a[^>]*>[^<>]*(((?'Open'<a[^>]*>)[^<>]*)+((?'-Open'</a>)[^<>]*)+)*(?(Open)(?!))</a>(<br>)?.*?</a>)(\s*→[^→<>]+(?=<))\s*)+(<a[^>]*>[^<>]*(((?'ga'<a[^>]*>)[^<>]*)+((?'-ga'</a>)[^<>]*)+)*(?(ga)(?!))</a>\s*";
        public static string regexCream = @"((?<=>)\s*(精华|精品)\s*(?=<))|(?<=>)\s*>\s*列表\s*(?=<)";
        //public static string 
    }
}
